package com.cnap.multiclouldmgmt.model;

import com.cnap.multiclouldmgmt.MulticlouldmgmtApplicationTests;
import org.junit.jupiter.api.Test;
import org.springframework.http.HttpStatus;

import static org.junit.jupiter.api.Assertions.*;

class CommonResultTest extends MulticlouldmgmtApplicationTests {

    private String test = "abcd";
    @Test
    void success() {
        CommonResult.success(test);
    }

    @Test
    void testSuccess() {

        CommonResult.success(test,"test");
    }

    @Test
    void successMsg() {
        CommonResult.success("test");
    }

    @Test
    void failed() {

        CommonResult.failed(500,"test");
    }

    @Test
    void testFailed() {
        CommonResult.failed();
    }

    @Test
    void testFailed1() {
        CommonResult.failed("tst");
    }

    @Test
    void testFailed2() {
        CommonResult commonResult = new CommonResult();
        commonResult.setCode(200);
        commonResult.getCode();
        commonResult.setMessage("test");
        commonResult.getMessage();
        commonResult.setData(test);
        commonResult.getData();
    }

    @Test
    void getCode() {
    }

    @Test
    void setCode() {
    }

    @Test
    void getMessage() {
    }

    @Test
    void setMessage() {
    }

    @Test
    void getData() {
    }

    @Test
    void setData() {
    }

    @Test
    void isSuccess() {
    }
}